Skip to content

Set up Playwright E2E and automate the Argo CD SSO auth#1138

Merged
openshift-merge-bot[bot] merged 2 commits intoredhat-developer:masterfrom
trdoyle81:GITOPS-9589-Automate-Login-Via-Openshift
May 6, 2026
Merged

Set up Playwright E2E and automate the Argo CD SSO auth#1138
openshift-merge-bot[bot] merged 2 commits intoredhat-developer:masterfrom
trdoyle81:GITOPS-9589-Automate-Login-Via-Openshift

Conversation

@trdoyle81
Copy link
Copy Markdown
Member

@trdoyle81 trdoyle81 commented Apr 28, 2026

/kind enhancement

What does this PR do / why we need it:

This PR adds the Playwright E2E testing foundation for the GitOps Operator.

  • Playwright Configuration: Sets up the core playwright.config.ts for ui testing.
  • Automated UI Login: Implements the LoginPage object and a global setup to handle the Argo login via OpenShift.
  • Session Management: storageState to capture and persist auth cookies so subsequent tests can skip the login process.
  • Utility: Includes a run-ui-tests.sh wrapper script to identify cluster UI routes via variables or CLI fallback.

Have you updated the necessary documentation?

  • Documentation update is required by this PR.
  • Documentation has been updated.

Which issue(s) this PR fixes:

Fixes #GITOPS-9589

Test acceptance criteria:

  • Unit Test
  • E2E Test

How to test changes / Special notes to the reviewer:

  1. Prerequisites: Review test/ui-e2e/README.md for environment setup.
  2. Navigate: cd test/ui-e2e
  3. Execution: Run ./run-ui-tests.sh tests/sso-login.spec.ts (or ./run-ui-tests.sh .auth/setup.ts).
  4. Verification:
    • Observe the browser performing the login flow through the Argo CD and OpenShift UI screens based on the provided IDP.
    • Verify that storageState.json is successfully generated in the .auth/ directory.

…ication

Signed-off-by: Triona Doyle <bot@example.com>
@openshift-ci openshift-ci Bot added the kind/enhancement New feature or request label Apr 28, 2026
@openshift-ci openshift-ci Bot requested review from Naveena-058 and jannfis April 28, 2026 15:02
@trdoyle81
Copy link
Copy Markdown
Member Author

/retest

Signed-off-by: Triona Doyle <bot@example.com>
@trdoyle81
Copy link
Copy Markdown
Member Author

/retest-required

@trdoyle81
Copy link
Copy Markdown
Member Author

/retest

1 similar comment
@trdoyle81
Copy link
Copy Markdown
Member Author

/retest

@openshift-ci
Copy link
Copy Markdown

openshift-ci Bot commented May 6, 2026

[APPROVALNOTIFIER] This PR is APPROVED

Approval requirements bypassed by manually added approval.

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@AdamSaleh
Copy link
Copy Markdown
Member

Ran it against recent build, looks good!

@AdamSaleh AdamSaleh added the lgtm label May 6, 2026
@openshift-merge-bot openshift-merge-bot Bot merged commit 09e251f into redhat-developer:master May 6, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants